/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cpal.entrenamiento.controller;


import com.cpal.entrenamiento.entity.Palabra;
import com.cpal.entrenamiento.service.IPalabraService;
import java.util.List;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.VariableResolver;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zk.ui.select.annotation.WireVariable;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Grid;
import org.zkoss.zul.ListModelList;
import org.zkoss.zul.Spinner;
import org.zkoss.zul.Textbox;
import org.zkoss.zul.Window;
import org.zkoss.zk.ui.event.Event;

/**
 *
 * @author avilca
 */
@VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
public class BuscarPacienteViewController extends SelectorComposer<Component>{
    
    private static final long serialVersionUID = 1L;
    @Wire
    Window modalDialogPaciente;    
    
     @Override
    public void doAfterCompose(Component comp) throws Exception {
        super.doAfterCompose(comp); //To change body of generated methods, choose Tools | Templates.

    }
     
     
//    @Listen("onClick=#btnBuscar")
//    public void buscarPalabra() {
//        System.out.println("llego");
//        List<Palabra> palabras = null;
//        palabras = palabraService.buscarPalabra(null, txtRima.getText(), Integer.parseInt(cmbRima.getSelectedItem().getValue().toString()), null, 0, null, null);
//        ListModelList prodModel = new ListModelList(palabras);
//        txtDescPalabra.setText("hola a todos");
//        grPalabras.setModel(prodModel);
//        System.out.println("");
//    } 
     
     
     
    @Listen("onClick = #btnClosePaciente")
    public void showModalPaciente(Event e) {
        modalDialogPaciente.detach();
    }
    
}
